/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* App.vue 或 main.css 中，确保 NOT scoped */

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
  background: #fefcf9;
  background-size: 400% 400%;
  animation: gradient-flow 15s ease infinite;
  font-family: 'Helvetica Neue', 'Segoe UI', sans-serif;
}
 .el-header {
  padding: 0;
  width: 100vw;
}
.el-container {
  margin-left: 0;
}


.el-main {
  width: 100vw;
  height: 100%;
  padding: 0;
}

.full-width-page {
  max-width: none;
  width: 100vw;
  height: 500px;
  margin: 0;
  padding: 0;
}

/* 背景流动动画 */
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== 主题变量 ===== */
:root {
  /* 咖啡主题色 */
  --primary-color: #8B4513;
  --secondary-color: #D2B48C;
  --accent-color: #A0522D;
  
  /* 中性色 */
  --text-color: #333;
  --text-light: #666;
  --background-light: #f5f5f5;
  
  /* 间距 */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  
  /* 圆角 */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  
  /* 阴影 */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
}

/* ===== Element Plus 样式覆盖 ===== */

.el-button--primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.el-button--primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.el-menu {
  border-right: none;
}

.el-card {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ===== 实用工具类 ===== */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===== 动画效果 ===== */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
}